package com.demo.paypalmanagement.common;

public enum ResultMsg {
    OBJECT_IS_EMPTY("01","请求对象为空"),
    LAST_ONE("02","请至少构建一条数据"),
    NAME_IS_EMPTY("03","名称不能为空"),
    QUANTITY_LAST_ONE("04","数量至少为1"),
    NUM_IS_EMPTY("05","数量为空"),
    DATA_IS_NULL("06","未查询到当前数据"),
    USER_IS_NOT_FOUND("07","未找到当前用户"),
    BUY_NUM_GT_QT("08","购买数量大于库存数"),
    MAIN_IMG_IS_NULL("09","主图为空"),
    ADDRESS_IS_NOT_COMPLETE("10","地址不完善"),
    ORDER_CLOSE("11","订单已关闭"),
    PRIZE_IS_EMPTY("12","抽奖失败，奖品已下架"),
    NO_PRIZE_SELECTED("13", "未抽中奖品，谢谢惠顾"),
    STOCK_IS_NOT_ENOUGH("14", "奖品库存不足，抽奖失败"),
    LOTTERY_NUM_IS_NOT_ENOUGH("15", "抽奖次数不足"),
    ;

    private String msg;

    private String code;

    public String getMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }


    ResultMsg(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }



}
